#include "Room.hh"
using namespace std;

Room::Room(string name,string text){
    this->name=name;
    this->text=text;
    connectRooms={};
}
string Room::getName()const{
    return this->name;
}
void Room::descriptionText(){
    cout<<text<<endl;
}
void Room::connections(Room* otherRoom){
    connectRooms.push_back(otherRoom);
}
void Room::showItems(vector<Item> items){
    int size = items.size();
    cout<<"Items:";
    if(size==0){
        cout<<"None";
    }else{
        for (int i=0;i<size;i++){
            cout<<items[i].name<<"("<<items[i].description<<")\n";
        }
    }
}
void Room::showEnemies(vector<Enemy> enemies){
    int size = enemies.size();
    cout<<"Enemies:";
    if(size==0){
        cout<<"None";
    }else{
        for (int i=0;i<size;i++){
            cout<<enemies[i].getName()<<"\n";
        }
    }
}
